from base.base_page import BasePage


class MyPage(BasePage):
    def user_btn(self):
        return self.by_xpath('//android.widget.ImageView[@content-desc="账户"]')

    def about_btn(self):
        return self.by_xpath('//android.widget.ImageView[@content-desc="关于我们"]')

    def go_user_page(self):
        self.user_btn().click()

    def go_about_page(self):
        self.about_btn().click()
